package chapter17;

import java.io.FileInputStream;
import java.io.IOException;

public class look_her {
    public static void main(String[] args) throws IOException {
        System.out.println("解密前的Her.txt为：");
        try (
                // Create an input stream for the file
                FileInputStream mm = new FileInputStream("Her.txt");
        ) {
            // Read values from the file
            int value;
            while ((value = mm.read()) != -1) {
                System.out.print(value + " ");
            }
        }
        System.out.println();
        System.out.println("解密后的Her.txt为：");
        try (
                // Create an input stream for the file
                FileInputStream mm = new FileInputStream("Her.txt");
        ) {
            // Read values from the file
            int value;
            while ((value = mm.read()) != -1) {
                value = value-5;
                System.out.print(value+ " " );
            }
        }
    }
}
